package com.design.patterns.list.decorator;

/**
 * 顶层产品抽象类
 * Component 抽象构件
 * @author Wangzhiwen
 */
public abstract class Drink {

    private String name;
    private float price;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }

    // 具体构件需要实现的方法
    protected abstract float cost();
}
